package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastAgentMgr implements Serializable {
    private Integer id;

    private String username;

    private String password;

    /**
     * 员工姓名
     */
    private String name;

    private String mobile;

    private Integer role_id;

    private String role_name;

    private Integer create_by;

    private Date create_time;

    private Integer update_by;

    private Date update_time;

    private Date last_login_time;

    private Integer status;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastAgentMgr withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public RunfastAgentMgr withUsername(String username) {
        this.setUsername(username);
        return this;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public RunfastAgentMgr withPassword(String password) {
        this.setPassword(password);
        return this;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public RunfastAgentMgr withName(String name) {
        this.setName(name);
        return this;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public RunfastAgentMgr withMobile(String mobile) {
        this.setMobile(mobile);
        return this;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Integer getRole_id() {
        return role_id;
    }

    public RunfastAgentMgr withRole_id(Integer role_id) {
        this.setRole_id(role_id);
        return this;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public String getRole_name() {
        return role_name;
    }

    public RunfastAgentMgr withRole_name(String role_name) {
        this.setRole_name(role_name);
        return this;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name == null ? null : role_name.trim();
    }

    public Integer getCreate_by() {
        return create_by;
    }

    public RunfastAgentMgr withCreate_by(Integer create_by) {
        this.setCreate_by(create_by);
        return this;
    }

    public void setCreate_by(Integer create_by) {
        this.create_by = create_by;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public RunfastAgentMgr withCreate_time(Date create_time) {
        this.setCreate_time(create_time);
        return this;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getUpdate_by() {
        return update_by;
    }

    public RunfastAgentMgr withUpdate_by(Integer update_by) {
        this.setUpdate_by(update_by);
        return this;
    }

    public void setUpdate_by(Integer update_by) {
        this.update_by = update_by;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public RunfastAgentMgr withUpdate_time(Date update_time) {
        this.setUpdate_time(update_time);
        return this;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Date getLast_login_time() {
        return last_login_time;
    }

    public RunfastAgentMgr withLast_login_time(Date last_login_time) {
        this.setLast_login_time(last_login_time);
        return this;
    }

    public void setLast_login_time(Date last_login_time) {
        this.last_login_time = last_login_time;
    }

    public Integer getStatus() {
        return status;
    }

    public RunfastAgentMgr withStatus(Integer status) {
        this.setStatus(status);
        return this;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", name=").append(name);
        sb.append(", mobile=").append(mobile);
        sb.append(", role_id=").append(role_id);
        sb.append(", role_name=").append(role_name);
        sb.append(", create_by=").append(create_by);
        sb.append(", create_time=").append(create_time);
        sb.append(", update_by=").append(update_by);
        sb.append(", update_time=").append(update_time);
        sb.append(", last_login_time=").append(last_login_time);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}